export const OrderCommon = {
	iconData: {
		backToBackImg: require('../../../imgs/order/backToBack.png'), // 闭
		executeImg: require('../../../imgs/order/execute.png'), // 执
		innerImg: require('../../../imgs/order/inner.png'), // 内
		openImg: require('../../../imgs/order/open.png'), // 敞
		outerImg: require('../../../imgs/order/outer.png'), // 外
		purchaseImg: require('../../../imgs/order/purchase.png'), // 采
		saleImg: require('../../../imgs/order/sale.png'), // 销
		quanHuaImg: require('../../../imgs/order/quanHua.png'), // 泉
		newImg: require('../../../imgs/order/new.png'), // 泉
		removeImg: require('../../../imgs/order/remove.png'), // 泉
		withdrawImg: require('../../../imgs/order/withdraw.jpg'), // 撤
		scrapImg: require('../../../imgs/order/abolish.jpg'), // 废
		xianImg: require('../../../imgs/order/xian.png'), // 现
	},
	_showIcon(code) {
		let imgUrl = null;
		switch (code) {
			case 'S':
				imgUrl = OrderCommon.iconData.openImg
				break;
			case 'A':
				imgUrl = OrderCommon.iconData.purchaseImg
				break;
			case 'E':
				imgUrl = OrderCommon.iconData.executeImg
				break;
			case 'C':
				imgUrl = OrderCommon.iconData.backToBackImg
				break;
			case 'QH':
				imgUrl = OrderCommon.iconData.executeImg
				break;
		}
		return imgUrl
	},
	ZXY_STATUS_LIST: [  // 中新油 状态
		{
			title: '全部',
			dickKey: ''
		}, {
			title: '草稿',
			statusList: ['RPT_DRAFT'],
			pushStatusList: ['0'],
			lockStatusList: ['0']
		}, {
			title: '已作废',
			statusList: ['ABANDONED'],
			pushStatusList: ['0'],
			lockStatusList: ['0']
		}, {
			title: '审批中',
			statusList: ['RPT_AUDITING'],
			pushStatusList: ['0'],
			lockStatusList: ['0']
		}, {
			title: '已驳回',
			statusList: ['RPT_AUDIT_UNPASS'],
			pushStatusList: ['0'],
			lockStatusList: ['0']
		}, {
			title: '已通过',
			statusList: ['EXECUTING'],
			pushStatusList: ['1'],
			lockStatusList: ['0']
		}, {
			title: '撤回审批中',
			statusList: ['EXECUTING'],
			pushStatusList: ['2'],
			lockStatusList: ['1']
		}, {
			title: '审批通过待撤回',
			statusList: ['EXECUTING'],
			pushStatusList: ['3'],
			lockStatusList: ['1']
		}, {
			title: '已通过未推SAP',
			statusList: ['EXECUTING'],
			pushStatusList: ['0'],
			lockStatusList: ['0']
		}, {
			title: 'SAP推送中',
			statusList: ['EXECUTING'],
			pushStatusList: ['4'],
			lockStatusList: ['0']
		}, {
			title: '待SAP冻结处理',
			statusList: ['EXECUTING'],
			pushStatusList: ['1'],
			lockStatusList: ['2', '3']
		}, {
			title: '历史完成',
			statusList: ['COMPLETED']
		}
	]
}